<template>
  <div class="wrap">
    <div class="box" v-for="x in data" @click="jump('ticketPurchase')">
      <img :src="x.url" alt="" >
      <div class="box_bot">
        <p>{{x.name}}</p>
        <div class="pf"><img v-for="(x,y) in List" :src="x" alt="" :style="{'right':.15*y+.35+'rem','z-index':30-y}"><p :style="{'right':0}">3.5</p></div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "arderMovie",
    data(){
      return {
        List:['../../../../static/img/uhead.jpg','../../../../static/img/uhead.jpg','../../../../static/img/uhead.jpg','../../../../static/img/uhead.jpg'],
        data:[{url:'../../../../static/img/mengnan.png',name:'元气满满的一天'},{url:'../../../../static/img/mengnan.png',name:'元气满满的一天'},{url:'../../../../static/img/mengnan.png',name:'李骞超级无敌帅气'}]
      }
    },
    methods: {
      jump(page) {
        this.$router.push({
          name:page
        })
      }
    }
  }
</script>

<style scoped>
  .wrap {
    width: 100%;
    box-sizing: border-box;
    padding: 0 .15rem;
  }

  .box {
    width: 3.46rem;
    margin: .1rem auto .1rem;
    font-size: 0;
  }

  .box > img {
    width: 100%;
    height: 1.6rem;
  }

  .box_bot {
    width: 100%;
    height: .5rem;
    display: flex;
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
  }

  .box_bot > p:nth-child(1) {
    font-size: .14rem;
    font-family: PingFang SC;
    font-weight: 500;
    color: #333333;
    max-width: 1.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .pf {
    width: 1.5rem;
    height: .5rem;
    display: flex;
    flex-flow: row;
    align-items: center;
    position: relative;
    max-width: 1.5rem;
    justify-content: flex-end;
  }

  .pf > p {
    width: .45rem;
    height: .3rem;
    background: linear-gradient(90deg, rgba(255, 142, 65, 1) 0%, rgba(255, 110, 0, 1) 100%);
    border-radius: .15rem .15rem .15rem .15rem;
    color: #ffffff;
    text-align: center;
    font-size: .16rem;
    line-height: .3rem;
    font-family: FZLanTingHeiS-R-GB;
    font-weight: 400;
    position: absolute;
  }
  .pf>img {
    width: .28rem;
    height: .28rem;
    border-radius: 100%;
    border: .01rem solid #ffffff;
    position: absolute;
  }
</style>
